package com.exp.bookhouse.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.exp.bookhouse.pojo.Permission;

import java.util.List;

public interface PermissionService {
    //查询该用户的所有权限
    List<Permission> queryPermissionsByUserName(String userName);

    //分页查询权限列表
    IPage<Permission> queryPermissionsByPage(Integer page, Integer size);

    //新增权限
    int savePermission(Permission permission);

    //根据id查询权限信息
    Permission queryPermissionById(Long id);

    //更新权限
    int updatePermission(Permission permission);

    //根据id删除权限
    void deletePermission(Long id);
}
